package com.eastfair.pay.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.request.PageParams;
import com.eastfair.boot.service.SuperService;
import com.eastfair.pay.dto.InvoiceApplyDTO;
import com.eastfair.pay.dto.InvoiceApplyPageQuery;
import com.eastfair.pay.entity.InvoiceApply;
import com.eastfair.pay.vo.InvoiceApplyVO;

/**
 * <p>
 * 业务接口
 * 发票申请
 * </p>
 *
 * @author clm
 * @date 2022-06-08
 */
public interface InvoiceApplyService extends SuperService<InvoiceApply> {
    /**
     * 发票申请、保存发票以及抬头
     * @param invoiceApplyDTO
     * @return
     */
    void saveInvoiceApply(InvoiceApplyDTO invoiceApplyDTO);

    /**
     * 发票查询
     */
    Page<InvoiceApplyVO> queryList(PageParams<InvoiceApplyPageQuery> params);
    /**
     * 开票详情查询
     */
    InvoiceApplyVO invoiceApplyQueryById(Long invoiceApplyId);

    /**
     * 取消发票申请.
     *
     * @param id the id
     * @return the boolean
     */
    boolean cancelInvoiceApply(Long id);
}
